/*
 * XML Type:  PayeeTransactionRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PayeeTransactionRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PayeeTransactionRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PayeeTransactionRequestImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionRequestImpl implements net.ofx.types.x2003.x04.PayeeTransactionRequest
{
    
    public PayeeTransactionRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PAYEERQ$0 = 
        new javax.xml.namespace.QName("", "PAYEERQ");
    private static final javax.xml.namespace.QName PAYEEMODRQ$2 = 
        new javax.xml.namespace.QName("", "PAYEEMODRQ");
    private static final javax.xml.namespace.QName PAYEEDELRQ$4 = 
        new javax.xml.namespace.QName("", "PAYEEDELRQ");
    
    
    /**
     * Gets the "PAYEERQ" element
     */
    public net.ofx.types.x2003.x04.PayeeRequest getPAYEERQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeRequest target = null;
            target = (net.ofx.types.x2003.x04.PayeeRequest)get_store().find_element_user(PAYEERQ$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PAYEERQ" element
     */
    public boolean isSetPAYEERQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PAYEERQ$0) != 0;
        }
    }
    
    /**
     * Sets the "PAYEERQ" element
     */
    public void setPAYEERQ(net.ofx.types.x2003.x04.PayeeRequest payeerq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeRequest target = null;
            target = (net.ofx.types.x2003.x04.PayeeRequest)get_store().find_element_user(PAYEERQ$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeRequest)get_store().add_element_user(PAYEERQ$0);
            }
            target.set(payeerq);
        }
    }
    
    /**
     * Appends and returns a new empty "PAYEERQ" element
     */
    public net.ofx.types.x2003.x04.PayeeRequest addNewPAYEERQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeRequest target = null;
            target = (net.ofx.types.x2003.x04.PayeeRequest)get_store().add_element_user(PAYEERQ$0);
            return target;
        }
    }
    
    /**
     * Unsets the "PAYEERQ" element
     */
    public void unsetPAYEERQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PAYEERQ$0, 0);
        }
    }
    
    /**
     * Gets the "PAYEEMODRQ" element
     */
    public net.ofx.types.x2003.x04.PayeeModRequest getPAYEEMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeModRequest target = null;
            target = (net.ofx.types.x2003.x04.PayeeModRequest)get_store().find_element_user(PAYEEMODRQ$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PAYEEMODRQ" element
     */
    public boolean isSetPAYEEMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PAYEEMODRQ$2) != 0;
        }
    }
    
    /**
     * Sets the "PAYEEMODRQ" element
     */
    public void setPAYEEMODRQ(net.ofx.types.x2003.x04.PayeeModRequest payeemodrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeModRequest target = null;
            target = (net.ofx.types.x2003.x04.PayeeModRequest)get_store().find_element_user(PAYEEMODRQ$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeModRequest)get_store().add_element_user(PAYEEMODRQ$2);
            }
            target.set(payeemodrq);
        }
    }
    
    /**
     * Appends and returns a new empty "PAYEEMODRQ" element
     */
    public net.ofx.types.x2003.x04.PayeeModRequest addNewPAYEEMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeModRequest target = null;
            target = (net.ofx.types.x2003.x04.PayeeModRequest)get_store().add_element_user(PAYEEMODRQ$2);
            return target;
        }
    }
    
    /**
     * Unsets the "PAYEEMODRQ" element
     */
    public void unsetPAYEEMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PAYEEMODRQ$2, 0);
        }
    }
    
    /**
     * Gets the "PAYEEDELRQ" element
     */
    public net.ofx.types.x2003.x04.PayeeDeleteRequest getPAYEEDELRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeDeleteRequest target = null;
            target = (net.ofx.types.x2003.x04.PayeeDeleteRequest)get_store().find_element_user(PAYEEDELRQ$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PAYEEDELRQ" element
     */
    public boolean isSetPAYEEDELRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PAYEEDELRQ$4) != 0;
        }
    }
    
    /**
     * Sets the "PAYEEDELRQ" element
     */
    public void setPAYEEDELRQ(net.ofx.types.x2003.x04.PayeeDeleteRequest payeedelrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeDeleteRequest target = null;
            target = (net.ofx.types.x2003.x04.PayeeDeleteRequest)get_store().find_element_user(PAYEEDELRQ$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeDeleteRequest)get_store().add_element_user(PAYEEDELRQ$4);
            }
            target.set(payeedelrq);
        }
    }
    
    /**
     * Appends and returns a new empty "PAYEEDELRQ" element
     */
    public net.ofx.types.x2003.x04.PayeeDeleteRequest addNewPAYEEDELRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeDeleteRequest target = null;
            target = (net.ofx.types.x2003.x04.PayeeDeleteRequest)get_store().add_element_user(PAYEEDELRQ$4);
            return target;
        }
    }
    
    /**
     * Unsets the "PAYEEDELRQ" element
     */
    public void unsetPAYEEDELRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PAYEEDELRQ$4, 0);
        }
    }
}
